<?php

declare(strict_types=1);

namespace Newbie\Helper;

use support\Log;
use Tinywan\Captcha\Captcha;

class NewbieCaptcha {
    /**
     * @return array
     */
    public function getCaptchaInfo (): array {
        try {
            return Captcha::base64();
        } catch (\Exception $e) {
            Log::error('[getCaptchaInfo] ' . $e->getMessage());
            return [];
        }
    }
}